package com.fjb.pojo.product;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 产品信息
 * </p>
 *
 * @author hemiao
 * @since 2020-02-16
 */
public class ProductInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 主账号id
     */
    private Integer mainUserId;
    
    private Integer userId;

    /**
     * 分类id
     */
    private Integer categoryId;

    /**
     * 品牌id
     */
    private Integer brandId;

    /**
     * 产品编号 年月日+主账号id+6位随机数
     */
    private String productNumber;

    private String productName;

    private String productTitle;

    /**
     *  产品类型  1、拆车件  2、事故车 
     */
    private Integer productType;

    /**
     *  交易类型  1、出售     2、回收(收购）
     */
    private Integer dealType;

    /**
     * 商品单位   个、件
     */
    private String productUnit;

    /**
     * 商品状态  1、上架中   2、下架中  3、系统下架  4、草稿箱  5、已删除
     */
    private Integer productStatus;

    private Integer createUserId;

    private LocalDateTime createTime;

    private Integer updateUserId;

    private LocalDateTime updateTime;

    /**
     * 商品详情json格式
     */
    private String productDetails;

    /**
     * 交货方式  关联交货方式表
     */
    private Integer deliveryModeId;

    /**
     * 是否新品  1代表TRUE，0代表FALSE
     */
    private Integer isNew;

    /**
     * 是否热卖 1代表TRUE，0代表FALSE
     */
    private Integer isHot;

    /**
     * 是否在售 1代表TRUE，0代表FALSE
     */
    private Integer isOnSale;

    /**
     * 浏览次数  默认0
     */
    private Integer viewCount;

    /**
     * 想要次数 默认0
     */
    private Integer wantCount;
    
    /**
     * 收藏 次数 默认0
     */
    private Integer collectCount;

    /**
     * 超赞 默认0
     */
    private Integer praiseCount;

    /**
     * 产品数量   sku_count + 起来总和
     */
    private Integer productCount;

    /**
     * 原价
     */
    private BigDecimal originalPrice;

    /**
     * 实际价格 已这个为准
     */
    private BigDecimal currentPrice;

    /**
     * 主文件 可以是图片  可以是视频
     */
    private String mainFileUrl;

    /**
     * 视频封面
     */
    private String videoCoverUrl;

    /**
     * 类型 image/jpeg 、image/png、video/mp4
     */
    private String contentType;

    /**
     * 产品文件  多个 逗号分隔
     */
    private String productFiles;

    /**
     * 来源   电脑端 windos ，微信小程序 wx_applet，app
     */
    private String dataSource;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }
    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
    public String getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(String productNumber) {
        this.productNumber = productNumber;
    }
    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }
    public String getProductTitle() {
        return productTitle;
    }

    public void setProductTitle(String productTitle) {
        this.productTitle = productTitle;
    }
    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }
    public Integer getDealType() {
        return dealType;
    }

    public void setDealType(Integer dealType) {
        this.dealType = dealType;
    }
    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }
    public Integer getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(Integer productStatus) {
        this.productStatus = productStatus;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public String getProductDetails() {
        return productDetails;
    }

    public void setProductDetails(String productDetails) {
        this.productDetails = productDetails;
    }
    public Integer getDeliveryModeId() {
        return deliveryModeId;
    }

    public void setDeliveryModeId(Integer deliveryModeId) {
        this.deliveryModeId = deliveryModeId;
    }
    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }
    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }
    public Integer getIsOnSale() {
        return isOnSale;
    }

    public void setIsOnSale(Integer isOnSale) {
        this.isOnSale = isOnSale;
    }
    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }
    public Integer getWantCount() {
        return wantCount;
    }

    public void setWantCount(Integer wantCount) {
        this.wantCount = wantCount;
    }
    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }
    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }
    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }
    public BigDecimal getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(BigDecimal currentPrice) {
        this.currentPrice = currentPrice;
    }
    public String getMainFileUrl() {
        return mainFileUrl;
    }

    public void setMainFileUrl(String mainFileUrl) {
        this.mainFileUrl = mainFileUrl;
    }
    public String getVideoCoverUrl() {
        return videoCoverUrl;
    }

    public void setVideoCoverUrl(String videoCoverUrl) {
        this.videoCoverUrl = videoCoverUrl;
    }
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
    public String getProductFiles() {
        return productFiles;
    }

    public void setProductFiles(String productFiles) {
        this.productFiles = productFiles;
    }
    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getCollectCount() {
		return collectCount;
	}

	public void setCollectCount(Integer collectCount) {
		this.collectCount = collectCount;
	}

	@Override
	public String toString() {
		return "ProductInfo [id=" + id + ", mainUserId=" + mainUserId + ", userId=" + userId + ", categoryId="
				+ categoryId + ", brandId=" + brandId + ", productNumber=" + productNumber + ", productName="
				+ productName + ", productTitle=" + productTitle + ", productType=" + productType + ", dealType="
				+ dealType + ", productUnit=" + productUnit + ", productStatus=" + productStatus + ", createUserId="
				+ createUserId + ", createTime=" + createTime + ", updateUserId=" + updateUserId + ", updateTime="
				+ updateTime + ", productDetails=" + productDetails + ", deliveryModeId=" + deliveryModeId + ", isNew="
				+ isNew + ", isHot=" + isHot + ", isOnSale=" + isOnSale + ", viewCount=" + viewCount + ", wantCount="
				+ wantCount + ", collectCount=" + collectCount + ", praiseCount=" + praiseCount + ", productCount="
				+ productCount + ", originalPrice=" + originalPrice + ", currentPrice=" + currentPrice
				+ ", mainFileUrl=" + mainFileUrl + ", videoCoverUrl=" + videoCoverUrl + ", contentType=" + contentType
				+ ", productFiles=" + productFiles + ", dataSource=" + dataSource + "]";
	}
	
}
